-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add full floating point support with divFloat function #19
base: master
Are you sure you want to change the base?
Conversation
6a2e385
to
03779b7
Compare
@@ -323,10 +335,11 @@ function cropHex(x: string): string { | |||
function floatShifts( | |||
xStart: string | number, | |||
yStart: string | number, | |||
moreShift?: number | |||
doFloat: boolean = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this a separate commit with a description of this internal function's signature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. Check out the comment and see if that's enough clarity
export function divf(x1: string, y1: string): string { | ||
return div(x1, y1, true) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens when the decimal is repetitive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean by repetitive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if x1 = '1'
and y1 = '3'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the changes look good. The only open ended discussion is regarding performance impacts to changes in div
. If we can isolate changes made to div and doFloat only for divf (true parameter for div), then that'd be ideal.
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneDescription
none